<?php

namespace App\Http\Requests;

class Store extends Base
{

    public function rules()
    {
        $rules = [
            'store_name' => 'required',
            'seller_name' => 'required',
            'logo' => 'required',
            'cate_id' => 'required',
        ];
        return $rules;

    }

    public function messages()
    {
        return [
            'store_name.required' => '请填写店铺名称',
            'seller_name.required' => '请填写卖家用户名',
            'logo.required' => '请上传店铺logo',
            'cate_id.required' => '请选择类目',
        ];
    }
}
